]> dgit.raspbian.org Git - gnome-shell.git/commit
gtk-embed: Hide window actors from pick
authorFlorian Müllner <fmuellner@gnome.org>
Fri, 15 Feb 2019 16:04:10 +0000 (17:04 +0100)
committerGeorges Basile Stavracas Neto <georges.stavracas@gmail.com>
Mon, 4 Mar 2019 19:52:24 +0000 (19:52 +0000)
commitae07aa786458759bbf81e49bb88bd933e1a95ec4
treecb767fba4ea58719df340a4fa287237ff121578a
parentfb808312696eb8cf91d04ff6cdfcec3b220c1e8a
gtk-embed: Hide window actors from pick

Since we started to support tray icons on wayland, the icon we show
is not the actual XEmbed window. Instead, we let mutter create a
MetaWindow for it, then use its window actor as source for a clone
we (or nowadays: extensions) can add, remove and destroy freely.

To not let the real icon get in the way, we set an empty input shape
and make its window actor fully transparent. This works OK on X11,
but on wayland all events still go through Clutter, so any reactive
surface actor inside the window actor will block events for any actors
underneath (and status icons go into the top-windows group, so almost
all actors are affected).

Luckily we can pile another hack onto the pile of status icon hacks ...

https://gitlab.gnome.org/GNOME/gnome-shell/issues/191
src/shell-gtk-embed.c